<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'MyJsp.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
	<html:form action="sendMail.do?method=sendMail">
		<table border="1" width="100%">
			<tr>
				<td width="200">
					邮件标题
				</td>
				<td>
					 <html:text property="sendMail.subject" value="大家好，我来了"></html:text>
				</td>
			</tr>
			<tr>
				<td>
					邮件内容
				</td>
				<td>
					<html:textarea property="sendMail.content" rows="5" cols="50"></html:textarea>
				</td>
			</tr>
			<tr>
				<td>
					发件人
				</td>
				<td>
					 <html:text property="sendMail.fromAddress" value="huganpu12345@163.com"></html:text>
				</td>
			</tr>
			<tr>
				<td>
					收件人
				</td>
				<td>
					 <html:text property="sendMail.toAddress" value="huganpu12345@sina.com"></html:text>
				</td>
			</tr>
			<tr>
				<td>
					邮件模版名称
				</td>
				<td>
					 <html:text property="sendMail.templateName"></html:text>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<html:submit></html:submit>
				</td>
				 
			</tr>
		</table>
		
		</html:form>
	</body>
</html>
